import request from '@/utils/request'

// 查询作者管理列表
export function listAuthor(query) {
  return request({
    url: '/teacher/author/list',
    method: 'get',
    params: query
  })
}

// 查询作者管理详细
export function getAuthor(recordid) {
  return request({
    url: '/teacher/author/' + recordid,
    method: 'get'
  })
}

// 新增作者管理
export function addAuthor(data) {
  return request({
    url: '/teacher/author',
    method: 'post',
    data: data
  })
}

// 修改作者管理
export function updateAuthor(data) {
  return request({
    url: '/teacher/author',
    method: 'put',
    data: data
  })
}

// 删除作者管理
export function delAuthor(recordid) {
  return request({
    url: '/teacher/author/' + recordid,
    method: 'delete'
  })
}

// 导出作者管理
export function exportAuthor(query) {
  return request({
    url: '/teacher/author/export',
    method: 'get',
    params: query
  })
}